/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package cl.zeke.pizzastore.vista.managedbeans;

import cl.zeke.pizzastore.negocio.services.AsincronoService;
import java.io.Serializable;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/**
 *
 * @author taller
 */
@Component
@Scope("view")
public class AsincronoTestBean implements Serializable {
    
    private static Logger log = LoggerFactory.getLogger(AsincronoTestBean.class);
    
    @Autowired
    private AsincronoService asincronoService;
    
    public void calculo() {
        log.debug("llamando a calculo asincrono");
        asincronoService.calculo();
        log.debug("sali llamado a calculo asincrono");
    }
    
}
